

<h2>Article <%= @article.title %>'s Tags</h2>

<ul id="taglist">
  <%= render :partial => 'edit_tag', :collection => @article.tags %>
</ul>

<% remote_form_for(:tag,
                   :url => {:controller => 'article_tags',:action => 'add_tag',:id => @article,:websiteid=>params[:websiteid]},
                   :method => :put,
                   :complete => "Field.clear('tag-name')") do |f| %>
  <%= f.text_field :name, :id => 'tag-name' %>
  <%= submit_tag 'Add Tag' %>
<% end %>

